<template>
	<view class="content">
		<evaluate-list :dataList="evaluate.data"></evaluate-list>
	</view>
</template>

<script>
	import evaluateList from '@/components/evaluateList.vue'
	export default {
		components: {
			evaluateList
		},
		data() {
			return {
				evaluate:{}
			}
		},
		onLoad(option) {
			this.getEvaluateList(option.id)
		},
		methods: {
			// 获取评论
			getEvaluateList(id) {
				uni.$u.http.post('/shop/commentlist', {
					goods_id: id,
					page: this.page
				}).then(res => {
					this.evaluate = res.data
				})
			},
		}
	}
</script>


<style>
	.content {
		margin: 0 auto;
		margin-left: 20rpx;
	}
</style>
